//--------------------------------------------------------------------------------------
// File: Tutorial02.fx
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------

struct VsInput
{	
	float4 pos : POSITION;
	float4 colour : COLOR;
};


struct VsOutput
{
	float4 pos : SV_POSITION;
	float4 colour : COLOR;
};

//--------------------------------------------------------------------------------------
// Vertex Shader
//--------------------------------------------------------------------------------------
VsOutput VS(VsInput input)
{
	VsOutput output = (VsOutput)0;
	output.pos = input.pos;
	output.colour = input.colour;

	output.pos += float4(0, 0, 0, 0.5f);

	return output;
}

//--------------------------------------------------------------------------------------
// Pixel Shader
//--------------------------------------------------------------------------------------
float4 PS(VsOutput output) : SV_Target
{
	return output.colour;

	//return float4(1, 0, 0, 1);

    //return float4( 0.5f, 1.0f, 0.0f, 1.0f );    // Yellow, with Alpha = 1
}
